const allTime = async (ctx: any, next: () => any) => {
  const start = new Date().getTime()
  await next()
  const end = new Date().getTime()
  const ms = end - start
  console.log('执行时间：', ms)
}
export default allTime
